import request from '@/utils/request'
export function warehouse_list() {
  return request({
    url: '/api/warehouse_list',
    method: 'GET'
  })
}
export function add_warehouse(data) {
  return request({
    url: '/api/add_warehouse',
    method: 'POST',
    data
  })
}
export function product_list() {
  return request({
    url: '/api/product_list',
    method: 'GET'
  })
}
export function add_goods(data) {
  return request({
    url: '/api/add_goods',
    method: 'POST',
    data
  })
}
export function agency_list() {
  return request({
    url: '/api/agency_list',
    method: 'GET'
  })
}
export function company_list() {
  return request({
    url: '/api/company_list',
    method: 'GET'
  })
}
export function add_agency(data) {
  return request({
    url: '/api/add_agency',
    method: 'POST',
    data
  })
}
export function stock_list() {
  return request({
    url: '/api/stock_list',
    method: 'GET'
  })
}
export function check_payment() {
  return request({
    url: '/api/check_payment',
    method: 'POST'
  })
}
export function submit_payment(data) {
  return request({
    url: '/api/submit_payment',
    method: 'POST',
    data
  })
}
export function accountant_download(data) {
  return request({
    url: '/api/download/excel/',
    method: 'POST',
    responseType: 'blob',
    data:data
  })
}
export function stock_flow() {
  return request({
    url: '/api/stock_flow',
    method: 'POST',
  })
}

